package com.gao.bytype;

import com.gao.WantBean;

/**
 * 1.必须有setter方法
 * 2.必须有唯一一个相同类型的bean
 * @author GaoXi
 * @date 2022/2/22 19:55
 */
public class ByTypeModeBean {

    private WantBean wantBean;


    /**
     * 也要有setter才注入
     * @param wantBean
     */
    public void setWantBean(WantBean wantBean) {
        this.wantBean = wantBean;
    }

    @Override
    public String toString() {
        return "ByTypeModeBean{" +
            "wantBean=" + wantBean +
            '}';
    }
}
